package com.stormrage.edu.dao.ent.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.stormrage.edu.dao.ent.EntAcctResDao;
import com.stormrage.entity.ent.EntAcctRes;
import com.stormragetech.core.dao.MysBaseDao;
import com.stormragetech.core.exception.StormrageTechException;

/**
 * @author www.stormragetech.com
 * @date 2016年3月7日
 * @version 1.0.0
 */
@Repository
public class EntAcctResDaoImpl extends MysBaseDao implements EntAcctResDao {

	private static final Logger LOG = LoggerFactory.getLogger(EntAcctResDaoImpl.class);

	@Override
	public void create(final EntAcctRes arg0) throws StormrageTechException {

		final String query = "INSERT INTO ent_acct_res (ID, acct_id, res_id) VALUES (:id, :acctId, :resId)";

		LOG.debug(" 数据库执行语句为： " + query);
		update(query, arg0);

	}

}
